// pages/swiper/swiper.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    current: 1,
    background: [
      'https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2346282507,2171850944&fm=26&gp=0.jpg',
      'https://dss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1595128334,82706458&fm=26&gp=0.jpg',
      'https://dss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3153405721,1524067674&fm=26&gp=0.jpg'
    ]
  },

  onLoad(options) {

  },
  change(evt) {
    this.setData({
      current: evt.detail.current + 1
    })
  }

})